import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import rasyRequset from "Tools/EasyReq.js"
import Search from 'components/Search/Search.vue'
Vue.config.productionTip = false
App.mpType = 'app'



uni.$showMessage = (title = "请求错误", duration = 1500) => uni.showToast({
	title,
	duration,
	icon: 'none'
})
app.component("Search",Search)
// uin.$request = request
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

import store from './store/store.js'
import bottomBar from './components/bottombar/bottombar.vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	app.component("bottomBar",bottomBar)
	return {
		app
	}
}
// #endif
